package com.his.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;

/**
 * 患者用户档案表
 * @TableName dzm_his_patient_file
 */
public class DzmHisPatientFile implements Serializable {
    /**
     * 主键
     */
    private Integer fileId;

    /**
     * 患者id
     */
    private Integer patientId;

    /**
     * 紧急联系人
     */
    private String emergencyContactName;

    /**
     * 紧急联系人电话
     */
    private String emergencyContactMobile;

    /**
     * 紧急联系人关系 1：爸爸  2：妈妈  3：儿子  4：女儿  5：亲戚  6：朋友
     */
    private Byte emergencyContactRelation;

    /**
     * 左耳听力 1：正常  2：耳聋
     */
    private String leftEarHearing;

    /**
     * 右耳听力 1：正常  2：耳聋
     */
    private Integer rightEarHearing;

    /**
     * 左眼视力
     */
    private Integer leftVision;

    private Integer deleted;
    /**
     * 修改时间
     */
    private String updateTime;

    /**
     * 右眼视力
     */
    private Integer rightVision;

    /**
     * 身高
     */
    private Integer height;

    /**
     * 体重
     */
    private Integer weight;

    /**
     * 血型 1:A 2:B 3:AB 4:O    Rh血型 1:阴性 2:阳性
     */
    private String bloodType;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 个人史
     */
    private String personalInfo;

    /**
     * 家族史
     */
    private String familyInfo;

    private static final long serialVersionUID = 1L;





    /**
     * 主键
     */
    public Integer getFileId() {
        return fileId;
    }




    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public String getEmergencyContactName() {
        return emergencyContactName;
    }

    public void setEmergencyContactName(String emergencyContactName) {
        this.emergencyContactName = emergencyContactName;
    }

    public String getEmergencyContactMobile() {
        return emergencyContactMobile;
    }

    public void setEmergencyContactMobile(String emergencyContactMobile) {
        this.emergencyContactMobile = emergencyContactMobile;
    }

    public Byte getEmergencyContactRelation() {
        return emergencyContactRelation;
    }

    public void setEmergencyContactRelation(Byte emergencyContactRelation) {
        this.emergencyContactRelation = emergencyContactRelation;
    }

    public String getLeftEarHearing() {
        return leftEarHearing;
    }

    public void setLeftEarHearing(String leftEarHearing) {
        this.leftEarHearing = leftEarHearing;
    }

    public Integer getRightEarHearing() {
        return rightEarHearing;
    }

    public void setRightEarHearing(Integer rightEarHearing) {
        this.rightEarHearing = rightEarHearing;
    }

    public Integer getLeftVision() {
        return leftVision;
    }

    public void setLeftVision(Integer leftVision) {
        this.leftVision = leftVision;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getRightVision() {
        return rightVision;
    }

    public void setRightVision(Integer rightVision) {
        this.rightVision = rightVision;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public String getBloodType() {
        return bloodType;
    }

    public void setBloodType(String bloodType) {
        this.bloodType = bloodType;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getPersonalInfo() {
        return personalInfo;
    }

    public void setPersonalInfo(String personalInfo) {
        this.personalInfo = personalInfo;
    }

    public String getFamilyInfo() {
        return familyInfo;
    }

    public void setFamilyInfo(String familyInfo) {
        this.familyInfo = familyInfo;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DzmHisPatientFile that = (DzmHisPatientFile) o;
        return fileId.equals(that.fileId) &&
                patientId.equals(that.patientId) &&
                emergencyContactName.equals(that.emergencyContactName) &&
                emergencyContactMobile.equals(that.emergencyContactMobile) &&
                emergencyContactRelation.equals(that.emergencyContactRelation) &&
                leftEarHearing.equals(that.leftEarHearing) &&
                Objects.equals(rightEarHearing, that.rightEarHearing) &&
                leftVision.equals(that.leftVision) &&
                deleted.equals(that.deleted) &&
                updateTime.equals(that.updateTime) &&
                rightVision.equals(that.rightVision) &&
                height.equals(that.height) &&
                weight.equals(that.weight) &&
                bloodType.equals(that.bloodType) &&
                createTime.equals(that.createTime) &&
                personalInfo.equals(that.personalInfo) &&
                familyInfo.equals(that.familyInfo);
    }

    @Override
    public int hashCode() {
        return Objects.hash(fileId, patientId, emergencyContactName, emergencyContactMobile, emergencyContactRelation, leftEarHearing, rightEarHearing, leftVision, deleted, updateTime, rightVision, height, weight, bloodType, createTime, personalInfo, familyInfo);
    }

    @Override
    public String toString() {
        return "DzmHisPatientFile{" +
                "fileId=" + fileId +
                ", patientId=" + patientId +
                ", emergencyContactName='" + emergencyContactName + '\'' +
                ", emergencyContactMobile='" + emergencyContactMobile + '\'' +
                ", emergencyContactRelation=" + emergencyContactRelation +
                ", leftEarHearing='" + leftEarHearing + '\'' +
                ", rightEarHearing=" + rightEarHearing +
                ", leftVision=" + leftVision +
                ", deleted=" + deleted +
                ", updateTime='" + updateTime + '\'' +
                ", rightVision=" + rightVision +
                ", height=" + height +
                ", weight=" + weight +
                ", bloodType='" + bloodType + '\'' +
                ", createTime='" + createTime + '\'' +
                ", personalInfo='" + personalInfo + '\'' +
                ", familyInfo='" + familyInfo + '\'' +
                '}';
    }
}